﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PPI.Entities.Enumerator;
using PPI.Entities.Inspections;
using PPI.Entities.Lookup;

namespace PPI.Entities.Settings.Mobile
{
    public class EMobileSettingsInspection : EMobileSettingsBase
    {
        private ECompany m_Company;
        private EInspector m_Inspector;

        #region Properties

        public ECompany Company
        {
            get { return m_Company; }
            set { m_Company = value; }
        }

        public EInspector Inspector
        {
            get { return m_Inspector; }
            set { m_Inspector = value; }
        }

        #endregion

        public EMobileSettingsInspection()
        :base()
        {
            m_Company = new ECompany();
            m_Inspector = new EInspector();
        }

        public EMobileSettingsInspection(ECompany company, EInspector inspector,EHandheld handheld, string mobileVersion, EVendor vendor, EVendor_Contact contact, EVendor_Project project) 
            : base(handheld, mobileVersion,project,contact,vendor)
        {
            m_Company = company;
            m_Inspector = inspector;
            m_DatabaseType = DatabaseTypes.Inspection;
        }

        public override void ConfigurateConfig()
        {
            SetDatabaseTypeName();
            m_ListMobileSettings.Add(m_DatabaseTypeName);
            m_ListMobileSettings.Add(m_Company);
            m_ListMobileSettings.Add(m_Inspector);
        }
    }
}
